package org.langqiao.string.regex;

public class RegexPlus {
	
	public static void main(String[] args){
		String s = "you  and     me";
		String s1 = s.replaceAll(" +", " ");//把多个空格变为一个空格，+表示多个连续的空格
		System.out.println(s1);
	}
}
